<template>
	<view>
		<view class="consumption">
			<view class="" v-if="consumptionlist.length==0">
				<noneView noneType="暂无记录"></noneView>
			</view>
			<view class="c_boxs" v-else>

				<view class="c_box flex1" v-for="(item,index) in consumptionlist" :key="index">
					<view class="c_box_l">
						<view class="c_b_l_t">
							提现
						</view>
						<view class="c_b_l_b">
							申请时间:{{$u.timeFormat(item.createtime, 'yyyy-mm-dd hh:MM')}}
						</view>

					</view>
					<view class="c_box_r">
						<!-- {{item.price}} -->
						<view class="c_box_r_t">
							{{item.money}}
						</view>
						<view class="c_box_r_b c_box_r_b0" v-if="item.status==0">
							待审核
						</view>
						<view class="c_box_r_b c_box_r_b1" v-if="item.status==1">
							已通过
						</view>
						<view class="c_box_r_b c_box_r_b2" v-if="item.status==2">
							已驳回
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import noneView from "@/components/none-item/none-item.vue"

	export default {
		components: {
			noneView,

		},
		async onLoad(options) {
			this.init()
		},
		data() {
			return {
				consumptionlist1: [],
				consumptionlist: [{
					name: '充值',
					time: '2019-01-11 11:30:22',
					price: '800.00',
					status:0
				}, {
					name: '充值',
					time: '2019-01-11 11:30:22',
					price: '800.00',
					status:1
				}, {
					name: '充值',
					time: '2019-01-11 11:30:22',
					price: '800.00',
					status:2
				}, {
					name: '充值',
					time: '2019-01-11 11:30:22',
					price: '800.00',
					status:2
				}, ]
			};
		},
		methods:{
			async init() {
				this.is_loading = true;
				let data = await this.$u.api.wallet_log({
					
				});
				console.log(data, 'data');
				if (data) {
				
					
					this.consumptionlist = data.data
					// this.income1 = 100
					
				}
			
				this.is_loading = false
			},
		}
	}
</script>

<style lang="scss">
	.consumption{
		background: #F6F8FA;
		min-height: 100vh;
	}
	.c_boxs {
		
		
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		opacity: 1;
		padding: 30rpx;
		padding-bottom: 0;
		
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		opacity: 1;
	}

	.c_box {
		margin: 20rpx;
		padding: 20rpx;
		
border-radius: 16rpx 16rpx 16rpx 16rpx;
		background: #FFFFFF;
		justify-content: space-between;
		height: 110rpx;
		border-bottom: 1rpx solid #DDDDDD;
	}

	
	

	.c_box_r {
		font-size: 40rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
		line-height: 30rpx;
	}
	.c_b_l_t {
		font-size: 30rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #333333;
		line-height: 30rpx;
	}
	
	.c_b_l_b {
		// width: 330rpx;
		// height: 50rpx;
		font-size: 24rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #999999;
		line-height: 50rpx;
	
	}
	.c_box_r_t{
	
		font-size: 32rpx;
		font-family: PingFang SC-Bold, PingFang SC;
		font-weight: bold;
		color: #752CF7;
		line-height: 50rpx;
		
	}
	.c_box_r_b{
		
		font-size: 26rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
		line-height: 50rpx;
	
	}
	.c_box_r_b1{
		
	
		color: #752CF7;
	
	
	}
	.c_box_r_b2{
		
	
		color: #FF0000 ;
	
	
	}
</style>